<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>
<head>
	<title><fmt:message key="csFeedback.title"/></title>
</head>

<%@include file="include/csFeedbackListTab.jspf" %>

<div class="feedback_wrap">
	<form method="get" id="feedbackListForm">
		<c:forEach items="${feedbackList}" var="feedback">
			<div class="item">
				<dl class="ask clearfix">
					<dt><fmt:message key="csFeedback.feedback.message"/>：</dt>
					<dd>${feedback.message}</dd>
					<dd class="writer">
						${feedback.feedbackUserArea} ${feedback.feedbackUserName}<br/> 
						<span class="time"><fmt:formatDate value="${feedback.createTime}" pattern="yyyy-MM-dd HH:mm" /></span>
					</dd>
				</dl>
				<customer:getFeedbackReplys feedbackId="${feedback.feedbackId}" returnReplyListName="replyList"/>
				<c:forEach items="${replyList}" var="reply" varStatus="replyStatus">
					<dl class="answer clearfix">
						<dt><fmt:message key="csFeedback.feedback.reply"/>：</dt><dd>${reply.message}</dd>
						<dd class="time"><fmt:formatDate value="${reply.createTime}" pattern="yyyy-MM-dd HH:mm" /></dd>
					</dl>
				</c:forEach>
				<c:if test="${empty replyList}">
					<dl class="answer clearfix">
						<dt><fmt:message key="csFeedback.feedback.reply.notYet"/>。</dt>
					</dl>
				</c:if>
			</div>
		</c:forEach>
		<c:if test="${empty feedbackList}">
			<div class="others_info">
				<fmt:message key="csFeedback.feedbackList.noFeedback"/>,
				<a href="${ctxPath}/feedback.html#addFeedbackForm"><fmt:message key="csFeedback.feedbackList.addFeedbackRightNow"/></a>
			</div>
		</c:if>
		<%--------保存查询条件 -------%>
		<%@include file="include/feedbackSearchCriteriaStorage.jspf"%>
		<div class="page_bottom clearfix">
			<%@ include file="../common/pagingOnly.jsp"%>
		</div>
	</form>	
</div>
<script type="text/javascript" defer>
$j(document).ready(function () {
});
</script>